import request from '@/utils/request'

export  default {
  pageListCarCondition(current,limit,carQuery){
    return request({
      url: `/car/pageListCar/${current}/${limit}`,
      method: 'post',
      data: carQuery,
    })
  },

  deleteCar(id){
    return request({
      url:`/car/deleteCar/${id}`,
      method:'get',
    })
  },

  saveCar(car){
    return request({
      url:`/car/saveCar`,
      method:'post',
      data:car,
    })
  },
  findCarById(id){
    return request({
      url:`/car/findCarById/${id}`,
      method:'get',
    })
  },
  updateCar(driver){
    return request({
      url:`/car/updateCar`,
        method: 'post',
        data:driver,
    })
  },

  deleteCarByIds(ids){
    return request({
      url:`/car/deleteCarByIds`,
      method: 'post',
      data:ids,
    })
  },
  getBrand(){
    return request({
      url:`/car/getDicById/21`,
      method:'get',
    })
  },

  getDicById(id){
    return request({
      url:`/car/getDic/${id}`,
      method:`get`,
    })
  },

  getSuper(){
    return request({
      url:`/car/getSuper`,
      method:`post`,
    })
  },

  getCarNo(){
    return request({
      url:`/driverRecord/getCar`,
      method:`post`,
    })
  },
  getAllCarNo(){
    return request({
      url:`/driverRecord/getAllCar`,
      method:`post`,
    })
  },
  getDriver(){
    return request({
      url:`/driverRecord/getDriver`,
      method:`post`,
    })
  },

  getAllDriver(){
    return request({
      url:`/driverRecord/getAllDriver`,
      method:`post`,
    })
  },
  saveDrivingRecord(driverRecord){
    return request({
      url:`/driverRecord/saveDriverRecord`,
      method:`post`,
      data:driverRecord,
    })
  },
  findDriverRecordById(id){
    return request({
      url:`/driverRecord/findDriverRecordById/${id}`,
      method:`get`,
    })
  },

  updateDriverRecord(driverRecord){
    return request({
      url:`/driverRecord/updateDriverRecord`,
      method: 'post',
      data:driverRecord,
    })
  },
  updateDriverRecordBack(driverRecord){
    return request({
      url:`/driverRecord/updateDriverRecordBack`,
      method: 'post',
      data:driverRecord,
    })
  },










}
